package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Auther Bennie
 * @Date 2020/6/12 18:02
 * @Description
 */
@TableName(value = "d_malls")
@Data
@Accessors(chain = true)
public class Malls {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.UUID)
    private String id;

    @JSONField(name = "Name")
    @TableField(value = "Name")
    private String name;

    /**
     * 省份
     */
    @JSONField(name = "ProvinceId")
    @TableField(value = "ProvinceId")
    private String provinceId;

    /**
     * 城市Id
     */
    @JSONField(name = "CityId")
    @TableField(value = "CityId")
    private String cityId;

    /**
     * 地区
     */
    @JSONField(name = "DistrictId")
    @TableField(value = "DistrictId")
    private String districtId;

    /**
     * 城市--地区
     */
//    @JSONField(name = "MallLocation")
//    @TableField(value = "MallLocation")
//    private String mallLocation;

    @JSONField(name = "Address")
    @TableField(value = "Address")
    private String address;

    /**
     * 店员
     */
    @JSONField(name = "ClerkNumber")
    @TableField(value = "ClerkNumber")
    private Integer clerkNumber;

    /**
     * 经营面积
     */
    @JSONField(name = "OperationAcreage")
    @TableField(value = "OperationAcreage")
    private Integer operationAcreage;

    // deleteFlag 1为可用 -1 为不可用
//    @JSONField(name = "DeleteFlag")
//    @TableField(value = "DeleteFlag")
//    private Integer deleteFlag;

    @JSONField(name = "TimeZone")
    @TableField(value = "TimeZone")
    private String timeZone;

    @JSONField(name = "IsVirtual")
    @TableField(value = "IsVirtual")
    private Integer isVirtual;

    /**
     * 排序
     */
    @JSONField(name = "Ranked")
    @TableField(value = "Ranked")
    private Integer ranked;

    @JSONField(name = "Modules")
    @TableField(value = "Modules")
    private String modules;

    @JSONField(name = "CompanyId")
    @TableField(value = "CompanyId")
    private String companyId;

    //enable 1为可用  -1为不可用
    @JSONField(name = "Enabled")
    @TableField(value = "Enabled")
    private Integer enabled;

    @JSONField(name = "UpdateUser")
    @TableField(value = "UpdateUser")
    private String updateUser;

    @JSONField(name = "UpdateTime")
    @TableField(value = "UpdateTime")
    private LocalDateTime updateTime = LocalDateTime.now();

    @JSONField(name = "CreateTime", format = "yyyy-MM-dd HH:mm:ss" )
    @TableField(value = "CreateTime")
    private LocalDateTime createTime;

    @JSONField(name = "SalesInterface")
    @TableField(value = "SalesInterface")
    private String salesInterface;

    @JSONField(name = "ImageUrl")
    @TableField(value = "ImageUrl")
    private String imageUrl;

    @JSONField(name = "Tags")
    @TableField(value = "Tags")
    private String tags;

    @JSONField(name = "Longitude")
    @TableField(value = "Longitude")
    private String longitude;

    @JSONField(name = "Latitude")
    @TableField(value = "Latitude")
    private String latitude;

    /**
     * 案场编号
     */
    @JSONField(name = "MallCode")
    @TableField(value = "MallCode")
    private String mallCode;

    @JSONField(name = "Principal")
    @TableField(value = "Principal")
    private String principal;

    @JSONField(name = "PrincipalMail")
    @TableField(value = "PrincipalMail")
    private String principalMail;

    @JSONField(name = "PrincipalTEll")
    @TableField(value = "PrincipalTEll")
    private String principalTEll;

    @JSONField(name = "ContractStartDate")
    @TableField(value = "ContractStartDate")
    private String contractStartDate;

    @JSONField(name = "ContractEndDate")
    @TableField(value = "ContractEndDate")
    private String contractEndDate;

}
